const fs = require('fs');
const filePath = "test.txt";
console.log("Start reading a file....");

fs.readFile(filePath, "utf-8", (err, data) => {
    if(err){
        console.log(`Read file ${filePath} error`);
    }else{
        console.log(`The content of file ${filePath} is:\n ${data}`);
    }
})